FROM node:14.21.3-alpine
#FROM node:alpine
# install pm2
RUN npm install pm2 -g

# PhantomJS
# COPY ./phantomjs-2.1.14.tar.gz /
# RUN tar -xvf /phantomjs-2.1.14.tar.gz -C /usr/local
# RUN ln -s /usr/local/phantomjs-2.1.14/bin/phantomjs /usr/bin/phantomjs
# RUN rm -f /phantomjs-2.1.14.tar.gz

EXPOSE 3000

CMD [ "pm2-runtime", "start", "pm2.json" ]
# ENTRYPOINT [ "pm2 start pm2.json" ]